using IM.Easy.Entity.System;
using IM.Easy.Infrastructure.Query;
using IM.Easy.SystemServices.Dtos.Department;
using SqlSugar;
using System.ComponentModel.DataAnnotations;


namespace IM.Easy.SystemServices.Dtos
{
    /// <summary>
    /// 组织机构岗位关系表查询实体
    /// </summary>
    public class SysOrgPostQueryDto : QueryBase
    {
        /// <summary>
        /// 组织机构ID
        /// </summary>
        public long OrgId { get; set; }

        /// <summary>
        /// 岗位关键字
        /// </summary>
        public string PostKey { get; set; }

    }

    /// <summary>
    /// 组织机构岗位关系表dto
    /// </summary>
    public class SysOrgPostDto
    {
        /// <summary>
        /// 主键KEY
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 组织机构ID
        /// </summary>
        public long OrgId { get; set; }
        /// <summary>
        /// 岗位ID
        /// </summary>
        public long PostId { get; set; }
        /// <summary>
        /// 编制人数
        /// </summary>
        public int StaffingNum { get; set; }
        /// <summary>
        /// 在岗人数
        /// </summary>
        public int ActualNum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 删除状态
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 岗位信息
        /// </summary>
        public SysPostDto Post { get; set; }

        /// <summary>
        /// 组织机构信息  
        /// </summary>
        public SysDepartmentDto Org { get; set; }
    }
}
